package com.yonyou.pmclouds.safetypatrol.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.safetypatrol.entity.SafetypatrolVO;
import org.apache.ibatis.annotations.Param;//这里要导入ibatis包,你导入的原来是query包

import java.util.List;
import java.util.Map;

/**
 * @author 徐老板
 * @date 2020/4/15   17:08
 */
public interface SafetypatrolMapper extends BaseMapper<SafetypatrolVO> {

    List<SafetypatrolVO> findAll(Map map);

    SafetypatrolVO findById(Map map);

    Integer findByStandardnameAndpkTenant(@Param("standardName") String standardName, @Param("pkTenant") String pkTenant);

    Integer checkQupte(SafetypatrolVO vo);


    Integer checkRepeat(SafetypatrolVO vo);

    int countPage(@Param("keyword")String keyword, @Param("pkTenant") String tenantId, @Param("stateCode")byte stateCode);

    List<SafetypatrolVO> queryByPage(@Param("keyword")String keyword, @Param("pkTenant")String tenantId, @Param("start")Integer start, @Param("limit")Integer limit, @Param("stateCode")byte stateCode);


}
